package com.ys.entity.purchase;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCG_PurchaseByPlanSon", catalog="Id")
public class TcgPurchaseByPlanSon extends BaseEntity<TcgPurchaseByPlanSon> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Pid", nameJava="pid", typeDataBase="bigint")
	private Long pid;
	@YsField(nameDataBase="Pbid", nameJava="pbid", typeDataBase="varchar")
	private String pbid;
	@YsField(nameDataBase="SubCode", nameJava="subCode", typeDataBase="varchar")
	private String subCode;
	@YsField(nameDataBase="SubName", nameJava="subName", typeDataBase="varchar")
	private String subName;
	@YsField(nameDataBase="SubAmount", nameJava="subAmount", typeDataBase="decimal")
	private BigDecimal subAmount;
	@YsField(nameDataBase="Bprice", nameJava="bprice", typeDataBase="decimal")
	private BigDecimal bprice;
	@YsField(nameDataBase="SubRemark", nameJava="subRemark", typeDataBase="varchar")
	private String subRemark;
	@YsField(nameDataBase="SubStockAmount", nameJava="subStockAmount", typeDataBase="decimal")
	private BigDecimal subStockAmount;
	@YsField(nameDataBase="PurchaseAmount", nameJava="purchaseAmount", typeDataBase="int")
	private Integer purchaseAmount;
	@YsField(nameDataBase="JgSl", nameJava="jgSl", typeDataBase="int")
	private Integer jgSl;
	@YsField(nameDataBase="SubTotalAmount", nameJava="subTotalAmount", typeDataBase="int")
	private Integer subTotalAmount;
	@YsField(nameDataBase="SubTotalPrice", nameJava="subTotalPrice", typeDataBase="decimal")
	private BigDecimal subTotalPrice;
	@YsField(nameDataBase="StoreAmount", nameJava="storeAmount", typeDataBase="decimal")
	private BigDecimal storeAmount;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TcgPurchaseByPlanSon setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getPid() {
		return pid;
	}
	public TcgPurchaseByPlanSon setPid(Long pid) {
		this.pid = pid;
		return this;
	}
	public String getPbid() {
		return pbid;
	}
	public TcgPurchaseByPlanSon setPbid(String pbid) {
		this.pbid = pbid;
		return this;
	}
	public String getSubCode() {
		return subCode;
	}
	public TcgPurchaseByPlanSon setSubCode(String subCode) {
		this.subCode = subCode;
		return this;
	}
	public String getSubName() {
		return subName;
	}
	public TcgPurchaseByPlanSon setSubName(String subName) {
		this.subName = subName;
		return this;
	}
	public BigDecimal getSubAmount() {
		return subAmount;
	}
	public TcgPurchaseByPlanSon setSubAmount(BigDecimal subAmount) {
		this.subAmount = subAmount;
		return this;
	}
	public BigDecimal getBprice() {
		return bprice;
	}
	public TcgPurchaseByPlanSon setBprice(BigDecimal bprice) {
		this.bprice = bprice;
		return this;
	}
	public String getSubRemark() {
		return subRemark;
	}
	public TcgPurchaseByPlanSon setSubRemark(String subRemark) {
		this.subRemark = subRemark;
		return this;
	}
	public BigDecimal getSubStockAmount() {
		return subStockAmount;
	}
	public TcgPurchaseByPlanSon setSubStockAmount(BigDecimal subStockAmount) {
		this.subStockAmount = subStockAmount;
		return this;
	}
	public Integer getPurchaseAmount() {
		return purchaseAmount;
	}
	public TcgPurchaseByPlanSon setPurchaseAmount(Integer purchaseAmount) {
		this.purchaseAmount = purchaseAmount;
		return this;
	}
	public Integer getJgSl() {
		return jgSl;
	}
	public TcgPurchaseByPlanSon setJgSl(Integer jgSl) {
		this.jgSl = jgSl;
		return this;
	}
	public Integer getSubTotalAmount() {
		return subTotalAmount;
	}
	public TcgPurchaseByPlanSon setSubTotalAmount(Integer subTotalAmount) {
		this.subTotalAmount = subTotalAmount;
		return this;
	}
	public BigDecimal getSubTotalPrice() {
		return subTotalPrice;
	}
	public TcgPurchaseByPlanSon setSubTotalPrice(BigDecimal subTotalPrice) {
		this.subTotalPrice = subTotalPrice;
		return this;
	}
	public BigDecimal getStoreAmount() {
		return storeAmount;
	}
	public TcgPurchaseByPlanSon setStoreAmount(BigDecimal storeAmount) {
		this.storeAmount = storeAmount;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TcgPurchaseByPlanSon setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TcgPurchaseByPlanSon setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TcgPurchaseByPlanSon setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TcgPurchaseByPlanSon tcgPurchaseByPlanSon(
		Long pid,
		String pbid,
		String subCode,
		String subName,
		BigDecimal subAmount,
		BigDecimal bprice,
		String subRemark,
		BigDecimal subStockAmount,
		Integer purchaseAmount,
		Integer jgSl,
		Integer subTotalAmount,
		BigDecimal subTotalPrice,
		BigDecimal storeAmount,
		Integer status
			) {
		TcgPurchaseByPlanSon entity = new TcgPurchaseByPlanSon();
		entity.setPid(pid);
		entity.setPbid(pbid);
		entity.setSubCode(subCode);
		entity.setSubName(subName);
		entity.setSubAmount(subAmount);
		entity.setBprice(bprice);
		entity.setSubRemark(subRemark);
		entity.setSubStockAmount(subStockAmount);
		entity.setPurchaseAmount(purchaseAmount);
		entity.setJgSl(jgSl);
		entity.setSubTotalAmount(subTotalAmount);
		entity.setSubTotalPrice(subTotalPrice);
		entity.setStoreAmount(storeAmount);
		entity.setStatus(status);
		return entity;
	}
}